import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    // mode: 'history',
    routes: [
        {
            path: '/',
            redirect: '/home'
        },
        {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
                {
                    path: '/home',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../page/home/index.vue'),
                    meta: { title: '登记信息' }
                },
                {
                    path: '/recyclebin',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../page/recyclebin/index.vue'),
                    meta: { title: '日报' }
                }
            ]
        }
        // {
        //     path: '/login',
        //     component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
        //     meta: { title: '登录' }
        // }
    ]
});
